package com.pmsystem.dao;

import com.pmsystem.pojo.CleanMan;
import com.pmsystem.pojo.SecurityMan;
import com.pmsystem.pojo.SecurityManExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface SecurityManMapper {
    long countByExample(SecurityManExample example);

    int deleteByExample(SecurityManExample example);

    int deleteByPrimaryKey(Integer securityManId);

    int insert(SecurityMan record);

    int insertSelective(SecurityMan record);

    List<SecurityMan> selectByExample(SecurityManExample example);

    SecurityMan selectByPrimaryKey(Integer securityManId);

    int updateByExampleSelective(@Param("record") SecurityMan record, @Param("example") SecurityManExample example);

    int updateByExample(@Param("record") SecurityMan record, @Param("example") SecurityManExample example);

    int updateByPrimaryKeySelective(SecurityMan record);

    int updateByPrimaryKey(SecurityMan record);

	/**  
	 * <p>Title: selectAllManCount</p >  
	 * <p>Description:查询安保人员数据总条数</p >  
	 * @author 魏家洛
	 * @return  
	 */  
	int selectManCount(@Param("condition")String condition);
	/**  
	 * <p>Title: selectManPage</p >  
	 * <p>Description: 通过开始索引和数量查询安保人员对应数据</p >  
	 * @author 魏家洛
	 * @param start
	 * @param pageSize
	 * @return  
	 */  
	List<SecurityMan> selectManPage(@Param("start") Integer start,@Param("pageSize") Integer pageSize,@Param("condition")String condition);
	/**  
	 * <p>Title: findAllMan</p >  
	 * <p>Description:传入条件查询所有人员数据</p >  
	 * @author 魏家洛
	 * @param condition
	 * @return  
	 */  
	List<SecurityMan> findAllMan(@Param("condition")String condition);
	/**  
	 * <p>Title: deleteManById</p >  
	 * <p>Description: 通过id删除安保人员数据</p >  
	 * @author 魏家洛
	 * @param id
	 * @return  
	 */  
	int deleteManById(Integer id);

	/**  
	 * <p>Title: selectManById</p >  
	 * <p>Description:通过安保人员id查找安保人员数据</p >  
	 * @author 魏家洛
	 * @param id
	 * @return  
	 */  
	SecurityMan selectManById(Integer id);

	/**  
	 * <p>Title: updateManByMan</p >  
	 * <p>Description:更新安保人员信息 </p >  
	 * @author 魏家洛
	 * @param securityMan
	 * @return  
	 */  
	int updateManByMan(SecurityMan securityMan);

	/**  
	 * <p>Title: addMan</p >  
	 * <p>Description:添加安保人员数据 </p >  
	 * @author 魏家洛
	 * @param securityMan
	 * @return  
	 */  
	int addMan(SecurityMan securityMan);
}